
import Mock from 'mockjs2'

const treeList =(options)=>{
  const tree =  {
    "success": true,
    "message": "",
    "code": 0,
    "result": [
      {
        "key": "c18ee544312342229e4df813113b314b",
        "value": "c18ee544312342229e4df813113b314b",
        "title": "纵购商城",
        "isLeaf": false,
        "id": "c18ee544312342229e4df813113b314b",
        "parentId": "",
        "parentCode": null,
        "departName": "纵购商城",
        "departNameEn": null,
        "departNameAbbr": null,
        "departOrder": 0,
        "description": null,
        "orgCategory": "1",
        "orgType": "1",
        "orgCode": "A07",
        "mobile": null,
        "fax": null,
        "address": null,
        "memo": null,
        "status": null,
        "delFlag": "0",
        "qywxIdentifier": null,
        "createBy": "admin",
        "createTime": "2022-01-13 22:48:29",
        "updateBy": null,
        "updateTime": null,
        "children": [
          {
            "key": "f052e6425acd49f98bf3f92f333b1bc9",
            "value": "f052e6425acd49f98bf3f92f333b1bc9",
            "title": "信息中心",
            "isLeaf": true,
            "id": "f052e6425acd49f98bf3f92f333b1bc9",
            "parentId": "c18ee544312342229e4df813113b314b",
            "parentCode": null,
            "departName": "信息中心",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": -1,
            "description": null,
            "orgCategory": "2",
            "orgType": "2",
            "orgCode": "A07A01",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2022-01-13 22:48:52",
            "updateBy": "admin",
            "updateTime": "2022-04-15 15:30:02",
            "children": null
          },
          {
            "key": "7d1dfadad884461ab11600d4263bc811",
            "value": "7d1dfadad884461ab11600d4263bc811",
            "title": "后勤部",
            "isLeaf": true,
            "id": "7d1dfadad884461ab11600d4263bc811",
            "parentId": "c18ee544312342229e4df813113b314b",
            "parentCode": "A01",
            "departName": "后勤部",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": -1,
            "description": null,
            "orgCategory": "2",
            "orgType": "3",
            "orgCode": "A03A01A06",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2022-02-23 15:03:55",
            "updateBy": "admin",
            "updateTime": "2022-04-15 15:29:42",
            "children": null
          },
          {
            "key": "485f9f3f53e54e7085d30e51d0e396bd",
            "value": "485f9f3f53e54e7085d30e51d0e396bd",
            "title": "运营部",
            "isLeaf": true,
            "id": "485f9f3f53e54e7085d30e51d0e396bd",
            "parentId": "c18ee544312342229e4df813113b314b",
            "parentCode": null,
            "departName": "运营部",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 0,
            "description": null,
            "orgCategory": "1",
            "orgType": "1",
            "orgCode": "00000018",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2022-04-24 10:05:35",
            "updateBy": "admin",
            "updateTime": "2022-04-24 10:05:48",
            "children": null
          }
        ]
      },
      {
        "key": "76851486abbe4fd7b441aa2a88ac39c7",
        "value": "76851486abbe4fd7b441aa2a88ac39c7",
        "title": "云帆众联（开发）",
        "isLeaf": false,
        "id": "76851486abbe4fd7b441aa2a88ac39c7",
        "parentId": "",
        "parentCode": "",
        "departName": "云帆众联（开发）",
        "departNameEn": null,
        "departNameAbbr": null,
        "departOrder": 0,
        "description": null,
        "orgCategory": "1",
        "orgType": "1",
        "orgCode": "A03",
        "mobile": null,
        "fax": null,
        "address": null,
        "memo": null,
        "status": null,
        "delFlag": "0",
        "qywxIdentifier": null,
        "createBy": "admin",
        "createTime": "2021-11-05 14:06:30",
        "updateBy": "admin",
        "updateTime": "2022-02-28 17:02:03",
        "children": [
          {
            "key": "378430e8a4474d0c837c56012565f0cd",
            "value": "378430e8a4474d0c837c56012565f0cd",
            "title": "人力资源中心",
            "isLeaf": true,
            "id": "378430e8a4474d0c837c56012565f0cd",
            "parentId": "76851486abbe4fd7b441aa2a88ac39c7",
            "parentCode": null,
            "departName": "人力资源中心",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": -1,
            "description": null,
            "orgCategory": "2",
            "orgType": "2",
            "orgCode": "A07A02",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2022-02-09 10:20:28",
            "updateBy": "admin",
            "updateTime": "2022-04-24 10:05:10",
            "children": null
          },
          {
            "key": "17a1dec4fa574bcebbabf274dba05a49",
            "value": "17a1dec4fa574bcebbabf274dba05a49",
            "title": "数字化旅游",
            "isLeaf": false,
            "id": "17a1dec4fa574bcebbabf274dba05a49",
            "parentId": "76851486abbe4fd7b441aa2a88ac39c7",
            "parentCode": "A03A03",
            "departName": "数字化旅游",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 0,
            "description": null,
            "orgCategory": "2",
            "orgType": "3",
            "orgCode": "A03A03A01",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2022-02-28 14:53:28",
            "updateBy": "admin",
            "updateTime": "2022-04-15 15:08:23",
            "children": [
              {
                "key": "d8d1ed1d2fcb4956be4cfc2825daf8fb",
                "value": "d8d1ed1d2fcb4956be4cfc2825daf8fb",
                "title": "景区服务",
                "isLeaf": true,
                "id": "d8d1ed1d2fcb4956be4cfc2825daf8fb",
                "parentId": "17a1dec4fa574bcebbabf274dba05a49",
                "parentCode": "A03A03",
                "departName": "景区服务",
                "departNameEn": null,
                "departNameAbbr": null,
                "departOrder": -1,
                "description": null,
                "orgCategory": "2",
                "orgType": "3",
                "orgCode": "A03A03A02",
                "mobile": null,
                "fax": null,
                "address": null,
                "memo": null,
                "status": null,
                "delFlag": "0",
                "qywxIdentifier": null,
                "createBy": "admin",
                "createTime": "2022-02-28 14:53:40",
                "updateBy": "admin",
                "updateTime": "2022-04-20 10:32:08",
                "children": null
              }
            ]
          },
          {
            "key": "9284bf41fa474a0ebaf9881778126f52",
            "value": "9284bf41fa474a0ebaf9881778126f52",
            "title": "企业数字化",
            "isLeaf": false,
            "id": "9284bf41fa474a0ebaf9881778126f52",
            "parentId": "76851486abbe4fd7b441aa2a88ac39c7",
            "parentCode": "A03",
            "departName": "企业数字化",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 0,
            "description": null,
            "orgCategory": "2",
            "orgType": "2",
            "orgCode": "A03A01",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2021-11-05 14:07:10",
            "updateBy": "admin",
            "updateTime": "2022-02-28 15:10:28",
            "children": [
              {
                "key": "9c9e99ae88fb40e4b8c6a25e0192068d",
                "value": "9c9e99ae88fb40e4b8c6a25e0192068d",
                "title": "测试中心",
                "isLeaf": true,
                "id": "9c9e99ae88fb40e4b8c6a25e0192068d",
                "parentId": "9284bf41fa474a0ebaf9881778126f52",
                "parentCode": null,
                "departName": "测试中心",
                "departNameEn": null,
                "departNameAbbr": null,
                "departOrder": 2,
                "description": null,
                "orgCategory": "1",
                "orgType": "1",
                "orgCode": "A28",
                "mobile": null,
                "fax": null,
                "address": null,
                "memo": null,
                "status": null,
                "delFlag": "0",
                "qywxIdentifier": null,
                "createBy": "admin",
                "createTime": "2022-04-15 15:10:28",
                "updateBy": "admin",
                "updateTime": "2022-04-15 15:11:31",
                "children": null
              },
              {
                "key": "4a8f50baaeb941499b449a11d2533587",
                "value": "4a8f50baaeb941499b449a11d2533587",
                "title": "法律部",
                "isLeaf": true,
                "id": "4a8f50baaeb941499b449a11d2533587",
                "parentId": "9284bf41fa474a0ebaf9881778126f52",
                "parentCode": "A01",
                "departName": "法律部",
                "departNameEn": null,
                "departNameAbbr": null,
                "departOrder": 3,
                "description": null,
                "orgCategory": "2",
                "orgType": "3",
                "orgCode": "A03A01A07",
                "mobile": null,
                "fax": null,
                "address": null,
                "memo": null,
                "status": null,
                "delFlag": "0",
                "qywxIdentifier": null,
                "createBy": "admin",
                "createTime": "2022-02-23 15:04:41",
                "updateBy": "admin",
                "updateTime": "2022-04-15 14:23:30",
                "children": null
              },
              {
                "key": "32c0ce0a60e04fb6baaeb159ae311158",
                "value": "32c0ce0a60e04fb6baaeb159ae311158",
                "title": "财务部",
                "isLeaf": true,
                "id": "32c0ce0a60e04fb6baaeb159ae311158",
                "parentId": "9284bf41fa474a0ebaf9881778126f52",
                "parentCode": "A01",
                "departName": "财务部",
                "departNameEn": null,
                "departNameAbbr": null,
                "departOrder": 3,
                "description": null,
                "orgCategory": "2",
                "orgType": "3",
                "orgCode": "A03A01A01",
                "mobile": null,
                "fax": null,
                "address": null,
                "memo": null,
                "status": null,
                "delFlag": "0",
                "qywxIdentifier": null,
                "createBy": "admin",
                "createTime": "2021-12-31 12:13:09",
                "updateBy": "admin",
                "updateTime": "2022-04-15 19:23:19",
                "children": null
              },
              {
                "key": "2f17999a4349485380b58f9fc53e9923",
                "value": "2f17999a4349485380b58f9fc53e9923",
                "title": "信息中心",
                "isLeaf": true,
                "id": "2f17999a4349485380b58f9fc53e9923",
                "parentId": "9284bf41fa474a0ebaf9881778126f52",
                "parentCode": "A01",
                "departName": "信息中心",
                "departNameEn": null,
                "departNameAbbr": null,
                "departOrder": 4,
                "description": null,
                "orgCategory": "2",
                "orgType": "3",
                "orgCode": "A03A01A03",
                "mobile": null,
                "fax": null,
                "address": null,
                "memo": null,
                "status": null,
                "delFlag": "0",
                "qywxIdentifier": null,
                "createBy": "admin",
                "createTime": "2022-02-10 15:20:04",
                "updateBy": "admin",
                "updateTime": "2022-04-15 15:34:38",
                "children": null
              },
              {
                "key": "72c8bc167a0645659612881d2c8b8da4",
                "value": "72c8bc167a0645659612881d2c8b8da4",
                "title": "人力资源部",
                "isLeaf": false,
                "id": "72c8bc167a0645659612881d2c8b8da4",
                "parentId": "9284bf41fa474a0ebaf9881778126f52",
                "parentCode": "A01",
                "departName": "人力资源部",
                "departNameEn": null,
                "departNameAbbr": null,
                "departOrder": 5,
                "description": null,
                "orgCategory": "2",
                "orgType": "3",
                "orgCode": "A03A01A02",
                "mobile": null,
                "fax": null,
                "address": null,
                "memo": null,
                "status": null,
                "delFlag": "0",
                "qywxIdentifier": null,
                "createBy": "admin",
                "createTime": "2021-12-31 12:13:31",
                "updateBy": "admin",
                "updateTime": "2022-04-15 14:23:37",
                "children": [
                  {
                    "key": "a0ec248cb97a48adbffddab395dc2143",
                    "value": "a0ec248cb97a48adbffddab395dc2143",
                    "title": "招聘中心",
                    "isLeaf": true,
                    "id": "a0ec248cb97a48adbffddab395dc2143",
                    "parentId": "72c8bc167a0645659612881d2c8b8da4",
                    "parentCode": "A03A01A02",
                    "departName": "招聘中心",
                    "departNameEn": null,
                    "departNameAbbr": null,
                    "departOrder": 0,
                    "description": null,
                    "orgCategory": "2",
                    "orgType": "4",
                    "orgCode": "A03A01A02A01",
                    "mobile": null,
                    "fax": null,
                    "address": null,
                    "memo": null,
                    "status": null,
                    "delFlag": "0",
                    "qywxIdentifier": null,
                    "createBy": "admin",
                    "createTime": "2022-04-15 15:12:31",
                    "updateBy": null,
                    "updateTime": null,
                    "children": null
                  }
                ]
              }
            ]
          },
          {
            "key": "8dc80e67675d4392bdc8dc805d792fe0",
            "value": "8dc80e67675d4392bdc8dc805d792fe0",
            "title": "旅游集团",
            "isLeaf": true,
            "id": "8dc80e67675d4392bdc8dc805d792fe0",
            "parentId": "76851486abbe4fd7b441aa2a88ac39c7",
            "parentCode": "A03",
            "departName": "旅游集团",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 0,
            "description": null,
            "orgCategory": "2",
            "orgType": "2",
            "orgCode": "A03A03",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2022-02-28 14:53:04",
            "updateBy": "admin",
            "updateTime": "2022-02-28 15:10:13",
            "children": null
          },
          {
            "key": "349988860d7b48e9b5828e4c76c06981",
            "value": "349988860d7b48e9b5828e4c76c06981",
            "title": "产业链协同",
            "isLeaf": true,
            "id": "349988860d7b48e9b5828e4c76c06981",
            "parentId": "76851486abbe4fd7b441aa2a88ac39c7",
            "parentCode": "A03",
            "departName": "产业链协同",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 1,
            "description": null,
            "orgCategory": "2",
            "orgType": "2",
            "orgCode": "A03A02",
            "mobile": "18924137688",
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2021-11-05 14:07:22",
            "updateBy": "admin",
            "updateTime": "2022-04-20 10:32:03",
            "children": null
          },
          {
            "key": "13898842296d402c91fc43959ee9f697",
            "value": "13898842296d402c91fc43959ee9f697",
            "title": "研发部",
            "isLeaf": true,
            "id": "13898842296d402c91fc43959ee9f697",
            "parentId": "76851486abbe4fd7b441aa2a88ac39c7",
            "parentCode": "A01",
            "departName": "研发部",
            "departNameEn": null,
            "departNameAbbr": null,
            "departOrder": 1,
            "description": null,
            "orgCategory": "2",
            "orgType": "3",
            "orgCode": "A03A01A04",
            "mobile": null,
            "fax": null,
            "address": null,
            "memo": null,
            "status": null,
            "delFlag": "0",
            "qywxIdentifier": null,
            "createBy": "admin",
            "createTime": "2022-02-23 14:54:39",
            "updateBy": "admin",
            "updateTime": "2022-04-15 19:22:10",
            "children": null
          }
        ]
      }
    ],
    "timestamp": 1670289116701
  }
  return tree
}
Mock.mock(/\/sys\/sysDepart\/queryTreeList/, 'get',treeList)
